package cn.golxen.barcode.utli;

import com.show.api.ShowApiRequest;

public class APIUtlis {
    static String appid="1066592";
    static String appSecret="b8eb4b1c82c14db5823f6ec4a0b11519";

    public String GetBarcode(String url){
        String res=new ShowApiRequest("http://route.showapi.com/2275-4",appid,appSecret)
                .addTextPara("image_url",url)
                .post();
        return res;
    }

    public String GetGoodsInfo(String code){
        String res=new ShowApiRequest("http://route.showapi.com/66-22",appid,appSecret)
                .addTextPara("code",code)
                .post();
        return res;
    }
}
